<?php
    if(C('LAYOUT_ON')) {
        echo '{__NOLAYOUT__}';
    }
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>定制已提交</title>
	<link rel="shortcut icon" href="__PUBLIC__/Home/image/djwy.ico" />
	<style type="text/css">
	    html {
        background: #f7f7f7;
    }
    body {
        background: #fff;
        color: #333;
        font-family: "MicrosoftYaHei" , "微软雅黑" ,Verdana,Arial;
        margin: 2em auto 0 auto;
        width: 700px;
        padding: 1em 2em;
        -moz-border-radius: 11px;
        -khtml-border-radius: 11px;
        -webkit-border-radius: 11px;
        border-radius: 11px;
        border: 1px solid #dfdfdf;
    }
    a {
        color: #2583ad;
        text-decoration: none;
    }
    a:hover {
        color: #d54e21;
    }
    h1 {
        border-bottom: 1px solid #dadada;
        clear: both;
        color: #666;
        margin: 5px 0 5px 0;
        padding: 0;
        padding-bottom: 1px;
        text-align: center;
    }
    h2 {
        text-align: center;
        font-size: 30px;
    }
    p {
        text-align: center;
        font-size: 18px;
    }
    div {
        margin-bottom: 80px;
    }
    ul {
        width: 400px;
        margin: 0 auto;
    }
	</style>
</head>
<body>
	<h1 id="logo"> <a href="http://www.dajiwuyi.com"><img alt="素材火logo" src="/1.jpg" /></a> </h1> 
   
  
	<?php if($message){ ?>
		<h2> <img src="__PUBLIC__/Home/image/err404.gif" alt="" /> Okey </h2>
		<p>
  		尊敬的 <?php echo($message); ?>，您的定制已提交完成，请等待客服与您联系。
  		</p>
	<?php }else{ ?>
		<h2> <img src="__PUBLIC__/Home/image/err404.gif" alt="" /> No, you cann't! </h2>
		<p>
		<?php echo($error); ?>，出现error，尽快与管理员联系
		</p>
	<?php } ?>
  </p> 
  <div> 
   <ul> 
    <li> <b id="wait"><?php echo($waitSecond); ?></b>秒后 <a id="href" href="<?php echo($jumpUrl); ?>">自动跳转首页</a></li> 
   </ul> 
  </div>



<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
	var time = --wait.innerHTML;
	if(time <= 0) {
		location.href = href;
		clearInterval(interval);
	};
}, 1000);
})();
</script>
</body>
</html>
